package com.example.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
public class DemoController {
    @RequestMapping("/login")
    public String  login() throws  InterruptedException{
        System.out.println("你收到了请求");
        Thread.sleep(3000);
        return "success";
    }
}
